cmake_minimum_required (VERSION 2.8) 

set (PROJECT cppsaxxmlparser)
set (GMOCK_FILES thirdparty/googlemock/gtest/src/gtest-all.cc thirdparty/googlemock/src/gmock-all.cc thirdparty/googlemock/src/gmock_main.cc)

project (${PROJECT})

# main binary
execute_process(COMMAND svn co http://googlemock.googlecode.com/svn/trunk/ thirdparty/googlemock)
add_executable (${PROJECT} tests.cpp cppsaxxmlparser.hpp mocks.h ${GMOCK_FILES})

include_directories(. thirdparty/googlemock/gtest thirdparty/googlemock/gtest/include thirdparty/googlemock thirdparty/googlemock/include)
add_definitions(-DGTEST_USE_OWN_TR1_TUPLE=0)